package com.imooc.user.service;

import com.imooc.pojo.AppUser;
import com.imooc.utils.PagedGridResult;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @auther Levi
 * @Date: 2021/03/21/21:28
 * @Description:
 */
public interface AppUserMngService {
    /**
     * 根据条件查询所有的用户列表，并且分页
     * @param nickname
     * @param status
     * @param startDate
     * @param endDate
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryAllUserList(String nickname, Integer status,
                                            Date startDate,Date endDate,
                                            Integer page,Integer pageSize);

    AppUser getUserInfo(String userId);

    void freezeUserOrNot(String userId, Integer doStatus);
}
